-
-
Couldn't load subscription status.
- Fork 1.9k
Configurable width of the symbol area of legends #5212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the PR. Looking good to me at first glance. |
|
@s417-lama we are planning next plotly.js minor (possibly next week) to include new features like this one. |
@s417-lama |
|
Is there some architectural reason why |
|
Following up on this, why is |
Problem
It was hard to distinguish different line types (
dashordashdot) in legends because the width of legend items were small.Scatter plot of

dashanddashdotlines:What I did
I added
legend.itemwidthoption to configure the width of legend items.By setting

legend.itemwidth = 60:The option name
itemwidthmight be controversial; for example, in matplotlib, the corresponding option name ishandlelength.